package com.geostar.constructionland.analyse.service.handler.impl.util;

import org.dom4j.Document;
import org.dom4j.DocumentHelper;

/**
 * @author yelll
 * @since 2020-6-1 20:27
 **/
public class XmlUtil {
    public static String parseXml(String xml){
        String resultJson = "";
        try{
            Document document = DocumentHelper.parseText(xml);
            resultJson = document.getRootElement().getStringValue();
        }catch(Exception e){
            e.printStackTrace();
        }
        return resultJson;
    }
}
